package com.sinosun.autotestmachine.tools.proxy.callback.buddy;

public enum BudduyActionType {
	AddBuddy(0),
	AddedPolicyChanged(1),
	AgreeAddBuddy(2),
	BuddyInfoChanged(3),
	RefuseAddBuddy(4),
	RemoveBuddy(5)
	;
	private int value;
	
	BudduyActionType(int value) {
		this.value = value;
	}
	
	public static BudduyActionType valueOf(int value) {
		switch (value)
		{
		case 0:
			return AddBuddy;
		case 1:
			return AddedPolicyChanged;
		case 2:
			return AgreeAddBuddy;
		case 3:
			return BuddyInfoChanged;
		case 4:
			return RefuseAddBuddy;
		case 5:
			return RemoveBuddy;
		}
		return null;
	}
	
	public int value() {
		return this.value;
	}
}
